/**************************************************************************/
/*                                                                        */
/* Copyright (c) 2021 XunceTech Company                                   */
/* 深圳迅策科技有限公司版权所有                                                                                                                            */
/*                                                                        */
/* PROPRIETARY RIGHTS of XunceTech Company are involved in the            */
/* subject matter of this material. All manufacturing, reproduction, use, */
/* and sales rights pertaining to this subject matter are governed by the */
/* license agreement. The recipient of this software implicitly accepts   */
/* the terms of the license.                                              */
/* 本软件文档资料是深圳迅策科技有限公司的资产，任何人士阅读和                    */
/* 使用本资料必须获得相应的书面授权，承担保密责任和接受相应的法律约束。           */
/*                                                                        */
/**************************************************************************/
package com.xctech.yace.enumeration;

/**
 * @Description:  Kafka角色类型
 * @Author:       marshall
 * @CreateDate:   2022/02/07
 */
public enum KafkaRoleType {
  /**
   * 消费者 TO
   */
  CONSUMER(0,"consumer"),
  /**
   * 生产者 FROM
   */
  PRODUCE(1,"produce"),
  ;

  private Integer role;
  private String kafkaRole;

  KafkaRoleType(Integer role, String kafkaRole) {
    this.role = role;
    this.kafkaRole = kafkaRole;
  }

  public Integer getRole() {
    return role;
  }

  public String getKafkaRoleName() {
    return kafkaRole;
  }


}